CMAKE_MINIMUM_REQUIRED (VERSION 2.8)

# include common file
include( ../CMakeCommonFile.txt )

# get subdir list from current dir
GLIB_GET_SUBDIR_LIST(${CMAKE_CURRENT_SOURCE_DIR} subdir_list)

# add subdir
FOREACH(subdir ${subdir_list})
    if(NOT(${subdir} STREQUAL "build"))
        ADD_SUBDIRECTORY (${subdir})
    endif(NOT(${subdir} STREQUAL "build"))
ENDFOREACH(subdir)

#ADD_SUBDIRECTORY (glib_datalist)
#ADD_SUBDIRECTORY (glib_dataset)







###########################
## for test

message("GLIB_INCLUDE_DIR: ${GLIB_INCLUDE_DIR}")
message("GLIB_CONFIG_INCLUDE_DIR: ${GLIB_CONFIG_INCLUDE_DIR}")

GLIB_GET_CURRENT_DIR_NAME(${CMAKE_CURRENT_SOURCE_DIR} current_name)

message("PROJECT_ROOT!!!-- current_name: ${current_name}")